import router from '@/router'

// 路由前置守卫
router.beforeEach((to, from, next) => {
    console.log(from.path, to.path, 11111)
    // 避免重复路由
    if (to.path === from.path) {
        return next(false)
    } else {
        next()
    }
})
